#!/bin/bash
# KWDB Ingest Environment Setup Script
# Source this file to set up environment variables

# KWDB Connection Settings
export KWDB_HOST=${KWDB_HOST:-127.0.0.1}
export KWDB_SQL_PORT=${KWDB_SQL_PORT:-26257}
export KWDB_DB=${KWDB_DB:-kwdb}
export KWDB_USER=${KWDB_USER:-root}
export KWDB_PWD=${KWDB_PWD:-}

# KWBASE Path (for native KWDB client)
export KWBASE_PATH=${KWBASE_PATH:-/home/go/src/gitee.com/kwbasedb/install/bin}

# Ingest Mode (sql or ilp)
export INGEST_MODE=${INGEST_MODE:-sql}

echo "=== KWDB Ingest Environment ==="
echo "KWDB_HOST=$KWDB_HOST"
echo "KWDB_SQL_PORT=$KWDB_SQL_PORT"
echo "KWDB_DB=$KWDB_DB"
echo "KWDB_USER=$KWDB_USER"
echo "KWBASE_PATH=$KWBASE_PATH"
echo "INGEST_MODE=$INGEST_MODE"
echo "==============================="